import { createRouter, createWebHashHistory } from 'vue-router'
import Home from '../views/Home.vue'
import firstIntroduce from '../views/firstIntroduce.vue'
import detailPage from '../views/detailPage.vue'
import detailSearch from '../views/detailSearch.vue'
import fan from '../views/fan.vue'
import myMessage from '../views/myMessage.vue'
import hotlist from '../views/hotlist.vue'
import hotlistDetail from '../views/hotlistDetail.vue'
import wanshan from '../views/wanshan.vue'
import login from '../views/login.vue'
import RegisterView from '../views/RegisterView.vue'
import findpassword from '../views/findpassword.vue'
import findchange from '../views/findchange.vue'
import changepassword from '../views/changepassword.vue'
import adminView from '../views/adminView.vue'
import adminDetail from '../views/adminDetail.vue'
import Release from '../views/Release.vue'
import test from '../views/test.vue'
const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
      import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path: '/FirstIntroduce',
    name: 'Introduce',
    component: firstIntroduce
  },
  {
    path: '/detailPage',
    name: 'detailPage',
    component: detailPage
  },
  {
    path: '/detailSearch',
    name: 'detailSearch',
    component: detailSearch
  },
  {
    path: '/fan',
    name: 'fan',
    component: fan
  },
  {
    path: '/myMessage',
    name: 'myMessage',
    component: myMessage
  },
  {
    path: '/hotlist',
    name: 'hotlist',
    component: hotlist
  },
  {
    path: '/hotlistDetail',
    name: 'hotlistDetail',
    component: hotlistDetail
  },
  {
    path: '/wanshan',
    name: 'wanshan',
    component: wanshan
  },
  {
    path: '/login',
    name: 'login',
    component: login
  },
  {
    path: '/RegisterView',
    name: 'RegisterView',
    component: RegisterView
  },
  {
    path: '/findpassword',
    name: 'findpassword',
    component: findpassword
  },
  {
    path: '/findchange',
    name: 'findchange',
    component: findchange
  },
  {
    path: '/changepassword',
    name: 'changepassword',
    component: changepassword
  },
  {
    path: '/adminView',
    name: 'adminView',
    component: adminView
  },
  {
    path: '/adminDetail',
    name: 'adminDetail',
    component: adminDetail
  },
  {
    path: '/Release',
    name: 'Release',
    component: Release
  },
  {
    path: '/test',
    name: 'test',
    component: test
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
